﻿<!--#include file="utf-8.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="seeion.asp"-->
<script language="javascript">
    function showUploadDialog(s_Type, s_Link, s_Thumbnail) {
        var arr = showModalDialog("eWebEditor/dialog/i_upload.htm?style=popup&type=" + s_Type + "&link=" + s_Link + "&thumbnail=" + s_Thumbnail, window, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");
    }
</script>
<html>
<head>
<title>增加活动</title>
<link href="images/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<%if request("type")="" then%>

<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" class="head"><strong>增加活动</strong></td>
</tr>
<tr>
<td>
<form method="post" name="myform" action="admin_doings_pass.asp?type=add">
    <table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
    <tr>
    <td width="15%"><div align="center">活动名称<font color="#FF0000"> (中文)</font></div></td>
    <td><input name="title" type="text" id="title" size="40"></td>
    </tr>
    <tr id="EN_1">
    <td width="15%"><div align="center">活动名称<font color="#FF0000"> (英文)</font></div></td>
    <td><input name="etitle" type="text" id="etitle" size="40"></td>
    </tr>
    <tr>
    <td width="15%"><div align="center">活动内容<font color="#FF0000"> (中文)</font></div></td>
    <td><INPUT type="hidden" name="body" value="">
    <IFRAME ID="eWebEditor1" SRC="ewebeditor/ewebeditor.htm?id=body&style=popup" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="400"></IFRAME></td>
    </tr>
    <tr id="EN_2">
    <td width="15%"><div align="center">活动内容 <font color="#FF0000">(英文)</font></div></td>
    <td><INPUT type="hidden" name="ebody" value="">
    <IFRAME ID="eWebEditor1" SRC="ewebeditor/ewebeditor.htm?id=ebody&style=popup" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="400"></IFRAME></td>
    </tr>
    <tr>
    <td width="15%">&nbsp;</td>
    <td><input type="submit" name="button"  value="確认提交" /></td>
    </tr>
    </table>
</form>
</td>
</tr>
</table>

<%else%>

<% 
exec="select * from doings where id="& request.QueryString("id") 
set rs=server.createobject("adodb.recordset") 
rs.open exec,conn,1,1 
%>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="30" class="head"><strong>活动管理</strong></td>
</tr>
<tr>
<td>
<FORM method="post" name="myform" action="admin_doing_pass.asp?type=update">
<input name="id" type="hidden" id="id" value="<%=request.querystring("id")%>"/>

    <table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
    <tr>
    <td width="15%"><div align="center">活动名称<font color="#FF0000"> (中文)</font></div></td>
    <td width="37"><input name="title" type="text" id="title" value="<%=rs("title")%>" size="40"></td>
    </tr>
    <tr id="EN_1">
    <td width="15%"><div align="center">活动名称<font color="#FF0000"> (英文)</font></div></td>
    <td><input name="etitle" type="text" id="etitle" value="<%=rs("etitle")%>" size="40"></td>
    </tr>
    <tr>
    <td width="15%"><div align="center">活动内容<font color="#FF0000"> (中文)</font></div></td>
    <td><input type="hidden" name="body" value='<%=replace(rs("body"),"'","&#39;")%>'/>
    <IFRAME ID="eWebEditor1" SRC="ewebeditor/ewebeditor.htm?id=body&style=popup" FRAMEBORDER="0" SCROLLING="no" WIDTH="100%" HEIGHT="400"></IFRAME></td>
    </tr>
  
    <tr>
    <td width="15%">&nbsp;</td>
    <td><input type="submit" name="button"  value="確认修改" /></td>
    </tr>
    </table>
</form>
</td>
</tr>
</table>

<%end if%>

</body>
</html>
<!--#include file="Language.asp"-->
